import request from '@/utils/request'

// 查询bankcard列表
export function listBankcard(query) {
  return request({
    url: '/hatha/bankcard/list',
    method: 'get',
    params: query
  })
}

// 查询bankcard详细
export function getBankcard(cardId) {
  return request({
    url: '/hatha/bankcard/' + cardId,
    method: 'get'
  })
}

// 新增bankcard
export function addBankcard(data) {
  return request({
    url: '/hatha/bankcard',
    method: 'post',
    data: data
  })
}

// 修改bankcard
export function updateBankcard(data) {
  return request({
    url: '/hatha/bankcard',
    method: 'put',
    data: data
  })
}

// 删除bankcard
export function delBankcard(cardId) {
  return request({
    url: '/hatha/bankcard/' + cardId,
    method: 'delete'
  })
}
